| Conditions | 61 |
| Total Lines | 438 |
| Code Lines | 231 |
| Lines | 112 |
| Ratio | 25.57 % |
| Changes | 0 | ||
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
Complex classes like angular-sanitize.js ➔ $SanitizeProvider often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
| 1 | /** |
||
| 157 | function $SanitizeProvider() { |
||
| 158 | var svgEnabled = false; |
||
| 159 | |||
| 160 | this.$get = ['$$sanitizeUri', function($$sanitizeUri) { |
||
| 161 | if (svgEnabled) { |
||
| 162 | extend(validElements, svgElements); |
||
| 163 | } |
||
| 164 | return function(html) { |
||
| 165 | var buf = []; |
||
| 166 | htmlParser(html, htmlSanitizeWriter(buf, function(uri, isImage) { |
||
| 167 | return !/^unsafe:/.test($$sanitizeUri(uri, isImage)); |
||
| 168 | })); |
||
| 169 | return buf.join(''); |
||
| 170 | }; |
||
| 171 | }]; |
||
| 172 | |||
| 173 | |||
| 174 | /** |
||
| 175 | * @ngdoc method |
||
| 176 | * @name $sanitizeProvider#enableSvg |
||
| 177 | * @kind function |
||
| 178 | * |
||
| 179 | * @description |
||
| 180 | * Enables a subset of svg to be supported by the sanitizer. |
||
| 181 | * |
||
| 182 | * <div class="alert alert-warning"> |
||
| 183 | * <p>By enabling this setting without taking other precautions, you might expose your |
||
| 184 | * application to click-hijacking attacks. In these attacks, sanitized svg elements could be positioned |
||
| 185 | * outside of the containing element and be rendered over other elements on the page (e.g. a login |
||
| 186 | * link). Such behavior can then result in phishing incidents.</p> |
||
| 187 | * |
||
| 188 | * <p>To protect against these, explicitly setup `overflow: hidden` css rule for all potential svg |
||
| 189 | * tags within the sanitized content:</p> |
||
| 190 | * |
||
| 191 | * <br> |
||
| 192 | * |
||
| 193 | * <pre><code> |
||
| 194 | * .rootOfTheIncludedContent svg { |
||
| 195 | * overflow: hidden !important; |
||
| 196 | * } |
||
| 197 | * </code></pre> |
||
| 198 | * </div> |
||
| 199 | * |
||
| 200 | * @param {boolean=} flag Enable or disable SVG support in the sanitizer. |
||
| 201 | * @returns {boolean|ng.$sanitizeProvider} Returns the currently configured value if called |
||
| 202 | * without an argument or self for chaining otherwise. |
||
| 203 | */ |
||
| 204 | this.enableSvg = function(enableSvg) { |
||
| 205 | if (isDefined(enableSvg)) { |
||
| 206 | svgEnabled = enableSvg; |
||
| 207 | return this; |
||
| 208 | } else { |
||
|
|
|||
| 209 | return svgEnabled; |
||
| 210 | } |
||
| 211 | }; |
||
| 212 | |||
| 213 | ////////////////////////////////////////////////////////////////////////////////////////////////// |
||
| 214 | // Private stuff |
||
| 215 | ////////////////////////////////////////////////////////////////////////////////////////////////// |
||
| 216 | |||
| 217 | bind = angular.bind; |
||
| 218 | extend = angular.extend; |
||
| 219 | forEach = angular.forEach; |
||
| 220 | isDefined = angular.isDefined; |
||
| 221 | lowercase = angular.lowercase; |
||
| 222 | noop = angular.noop; |
||
| 223 | |||
| 224 | htmlParser = htmlParserImpl; |
||
| 225 | htmlSanitizeWriter = htmlSanitizeWriterImpl; |
||
| 226 | |||
| 227 | nodeContains = window.Node.prototype.contains || /** @this */ function(arg) { |
||
| 228 | // eslint-disable-next-line no-bitwise |
||
| 229 | return !!(this.compareDocumentPosition(arg) & 16); |
||
| 230 | }; |
||
| 231 | |||
| 232 | // Regular Expressions for parsing tags and attributes |
||
| 233 | var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, |
||
| 234 | // Match everything outside of normal chars and " (quote character) |
||
| 235 | NON_ALPHANUMERIC_REGEXP = /([^#-~ |!])/g; |
||
| 236 | |||
| 237 | |||
| 238 | // Good source of info about elements and attributes |
||
| 239 | // http://dev.w3.org/html5/spec/Overview.html#semantics |
||
| 240 | // http://simon.html5.org/html-elements |
||
| 241 | |||
| 242 | // Safe Void Elements - HTML5 |
||
| 243 | // http://dev.w3.org/html5/spec/Overview.html#void-elements |
||
| 244 | var voidElements = toMap('area,br,col,hr,img,wbr'); |
||
| 245 | |||
| 246 | // Elements that you can, intentionally, leave open (and which close themselves) |
||
| 247 | // http://dev.w3.org/html5/spec/Overview.html#optional-tags |
||
| 248 | var optionalEndTagBlockElements = toMap('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr'), |
||
| 249 | optionalEndTagInlineElements = toMap('rp,rt'), |
||
| 250 | optionalEndTagElements = extend({}, |
||
| 251 | optionalEndTagInlineElements, |
||
| 252 | optionalEndTagBlockElements); |
||
| 253 | |||
| 254 | // Safe Block Elements - HTML5 |
||
| 255 | var blockElements = extend({}, optionalEndTagBlockElements, toMap('address,article,' + |
||
| 256 | 'aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + |
||
| 257 | 'h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul')); |
||
| 258 | |||
| 259 | // Inline Elements - HTML5 |
||
| 260 | var inlineElements = extend({}, optionalEndTagInlineElements, toMap('a,abbr,acronym,b,' + |
||
| 261 | 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,' + |
||
| 262 | 'samp,small,span,strike,strong,sub,sup,time,tt,u,var')); |
||
| 263 | |||
| 264 | // SVG Elements |
||
| 265 | // https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Elements |
||
| 266 | // Note: the elements animate,animateColor,animateMotion,animateTransform,set are intentionally omitted. |
||
| 267 | // They can potentially allow for arbitrary javascript to be executed. See #11290 |
||
| 268 | var svgElements = toMap('circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,' + |
||
| 269 | 'hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,' + |
||
| 270 | 'radialGradient,rect,stop,svg,switch,text,title,tspan'); |
||
| 271 | |||
| 272 | // Blocked Elements (will be stripped) |
||
| 273 | var blockedElements = toMap('script,style'); |
||
| 274 | |||
| 275 | var validElements = extend({}, |
||
| 276 | voidElements, |
||
| 277 | blockElements, |
||
| 278 | inlineElements, |
||
| 279 | optionalEndTagElements); |
||
| 280 | |||
| 281 | //Attributes that have href and hence need to be sanitized |
||
| 282 | var uriAttrs = toMap('background,cite,href,longdesc,src,xlink:href'); |
||
| 283 | |||
| 284 | var htmlAttrs = toMap('abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,' + |
||
| 285 | 'color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,' + |
||
| 286 | 'ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,' + |
||
| 287 | 'scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,' + |
||
| 288 | 'valign,value,vspace,width'); |
||
| 289 | |||
| 290 | // SVG attributes (without "id" and "name" attributes) |
||
| 291 | // https://wiki.whatwg.org/wiki/Sanitization_rules#svg_Attributes |
||
| 292 | var svgAttrs = toMap('accent-height,accumulate,additive,alphabetic,arabic-form,ascent,' + |
||
| 293 | 'baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,' + |
||
| 294 | 'cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,' + |
||
| 295 | 'font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,' + |
||
| 296 | 'height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,' + |
||
| 297 | 'marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,' + |
||
| 298 | 'max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,' + |
||
| 299 | 'path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,' + |
||
| 300 | 'requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,' + |
||
| 301 | 'stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,' + |
||
| 302 | 'stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,' + |
||
| 303 | 'stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,' + |
||
| 304 | 'underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,' + |
||
| 305 | 'width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,' + |
||
| 306 | 'xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan', true); |
||
| 307 | |||
| 308 | var validAttrs = extend({}, |
||
| 309 | uriAttrs, |
||
| 310 | svgAttrs, |
||
| 311 | htmlAttrs); |
||
| 312 | |||
| 313 | function toMap(str, lowercaseKeys) { |
||
| 314 | var obj = {}, items = str.split(','), i; |
||
| 315 | for (i = 0; i < items.length; i++) { |
||
| 316 | obj[lowercaseKeys ? lowercase(items[i]) : items[i]] = true; |
||
| 317 | } |
||
| 318 | return obj; |
||
| 319 | } |
||
| 320 | |||
| 321 | /** |
||
| 322 | * Create an inert document that contains the dirty HTML that needs sanitizing |
||
| 323 | * Depending upon browser support we use one of three strategies for doing this. |
||
| 324 | * Support: Safari 10.x -> XHR strategy |
||
| 325 | * Support: Firefox -> DomParser strategy |
||
| 326 | */ |
||
| 327 | var getInertBodyElement /* function(html: string): HTMLBodyElement */ = (function(window, document) { |
||
| 328 | var inertDocument; |
||
| 329 | if (document && document.implementation) { |
||
| 330 | inertDocument = document.implementation.createHTMLDocument('inert'); |
||
| 331 | } else { |
||
| 332 | throw $sanitizeMinErr('noinert', 'Can\'t create an inert html document'); |
||
| 333 | } |
||
| 334 | var inertBodyElement = (inertDocument.documentElement || inertDocument.getDocumentElement()).querySelector('body'); |
||
| 335 | |||
| 336 | // Check for the Safari 10.1 bug - which allows JS to run inside the SVG G element |
||
| 337 | inertBodyElement.innerHTML = '<svg><g onload="this.parentNode.remove()"></g></svg>'; |
||
| 338 | if (!inertBodyElement.querySelector('svg')) { |
||
| 339 | return getInertBodyElement_XHR; |
||
| 340 | } else { |
||
| 341 | // Check for the Firefox bug - which prevents the inner img JS from being sanitized |
||
| 342 | inertBodyElement.innerHTML = '<svg><p><style><img src="</style><img src=x onerror=alert(1)//">'; |
||
| 343 | if (inertBodyElement.querySelector('svg img')) { |
||
| 344 | return getInertBodyElement_DOMParser; |
||
| 345 | } else { |
||
| 346 | return getInertBodyElement_InertDocument; |
||
| 347 | } |
||
| 348 | } |
||
| 349 | |||
| 350 | function getInertBodyElement_XHR(html) { |
||
| 351 | // We add this dummy element to ensure that the rest of the content is parsed as expected |
||
| 352 | // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag. |
||
| 353 | html = '<remove></remove>' + html; |
||
| 354 | try { |
||
| 355 | html = encodeURI(html); |
||
| 356 | } catch (e) { |
||
| 357 | return undefined; |
||
| 358 | } |
||
| 359 | var xhr = new window.XMLHttpRequest(); |
||
| 360 | xhr.responseType = 'document'; |
||
| 361 | xhr.open('GET', 'data:text/html;charset=utf-8,' + html, false); |
||
| 362 | xhr.send(null); |
||
| 363 | var body = xhr.response.body; |
||
| 364 | body.firstChild.remove(); |
||
| 365 | return body; |
||
| 366 | } |
||
| 367 | |||
| 368 | function getInertBodyElement_DOMParser(html) { |
||
| 369 | // We add this dummy element to ensure that the rest of the content is parsed as expected |
||
| 370 | // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the `<head>` tag. |
||
| 371 | html = '<remove></remove>' + html; |
||
| 372 | try { |
||
| 373 | var body = new window.DOMParser().parseFromString(html, 'text/html').body; |
||
| 374 | body.firstChild.remove(); |
||
| 375 | return body; |
||
| 376 | } catch (e) { |
||
| 377 | return undefined; |
||
| 378 | } |
||
| 379 | } |
||
| 380 | |||
| 381 | function getInertBodyElement_InertDocument(html) { |
||
| 382 | inertBodyElement.innerHTML = html; |
||
| 383 | |||
| 384 | // Support: IE 9-11 only |
||
| 385 | // strip custom-namespaced attributes on IE<=11 |
||
| 386 | if (document.documentMode) { |
||
| 387 | stripCustomNsAttrs(inertBodyElement); |
||
| 388 | } |
||
| 389 | |||
| 390 | return inertBodyElement; |
||
| 391 | } |
||
| 392 | })(window, window.document); |
||
| 393 | |||
| 394 | /** |
||
| 395 | * @example |
||
| 396 | * htmlParser(htmlString, { |
||
| 397 | * start: function(tag, attrs) {}, |
||
| 398 | * end: function(tag) {}, |
||
| 399 | * chars: function(text) {}, |
||
| 400 | * comment: function(text) {} |
||
| 401 | * }); |
||
| 402 | * |
||
| 403 | * @param {string} html string |
||
| 404 | * @param {object} handler |
||
| 405 | */ |
||
| 406 | function htmlParserImpl(html, handler) { |
||
| 407 | if (html === null || html === undefined) { |
||
| 408 | html = ''; |
||
| 409 | } else if (typeof html !== 'string') { |
||
| 410 | html = '' + html; |
||
| 411 | } |
||
| 412 | |||
| 413 | var inertBodyElement = getInertBodyElement(html); |
||
| 414 | if (!inertBodyElement) return ''; |
||
| 415 | |||
| 416 | //mXSS protection |
||
| 417 | var mXSSAttempts = 5; |
||
| 418 | do { |
||
| 419 | if (mXSSAttempts === 0) { |
||
| 420 | throw $sanitizeMinErr('uinput', 'Failed to sanitize html because the input is unstable'); |
||
| 421 | } |
||
| 422 | mXSSAttempts--; |
||
| 423 | |||
| 424 | // trigger mXSS if it is going to happen by reading and writing the innerHTML |
||
| 425 | html = inertBodyElement.innerHTML; |
||
| 426 | inertBodyElement = getInertBodyElement(html); |
||
| 427 | } while (html !== inertBodyElement.innerHTML); |
||
| 428 | |||
| 429 | var node = inertBodyElement.firstChild; |
||
| 430 | View Code Duplication | while (node) { |
|
| 431 | switch (node.nodeType) { |
||
| 432 | case 1: // ELEMENT_NODE |
||
| 433 | handler.start(node.nodeName.toLowerCase(), attrToMap(node.attributes)); |
||
| 434 | break; |
||
| 435 | case 3: // TEXT NODE |
||
| 436 | handler.chars(node.textContent); |
||
| 437 | break; |
||
| 438 | } |
||
| 439 | |||
| 440 | var nextNode; |
||
| 441 | if (!(nextNode = node.firstChild)) { |
||
| 442 | if (node.nodeType === 1) { |
||
| 443 | handler.end(node.nodeName.toLowerCase()); |
||
| 444 | } |
||
| 445 | nextNode = getNonDescendant('nextSibling', node); |
||
| 446 | if (!nextNode) { |
||
| 447 | while (nextNode == null) { |
||
| 448 | node = getNonDescendant('parentNode', node); |
||
| 449 | if (node === inertBodyElement) break; |
||
| 450 | nextNode = getNonDescendant('nextSibling', node); |
||
| 451 | if (node.nodeType === 1) { |
||
| 452 | handler.end(node.nodeName.toLowerCase()); |
||
| 453 | } |
||
| 454 | } |
||
| 455 | } |
||
| 456 | } |
||
| 457 | node = nextNode; |
||
| 458 | } |
||
| 459 | |||
| 460 | while ((node = inertBodyElement.firstChild)) { |
||
| 461 | inertBodyElement.removeChild(node); |
||
| 462 | } |
||
| 463 | } |
||
| 464 | |||
| 465 | function attrToMap(attrs) { |
||
| 466 | var map = {}; |
||
| 467 | for (var i = 0, ii = attrs.length; i < ii; i++) { |
||
| 468 | var attr = attrs[i]; |
||
| 469 | map[attr.name] = attr.value; |
||
| 470 | } |
||
| 471 | return map; |
||
| 472 | } |
||
| 473 | |||
| 474 | |||
| 475 | /** |
||
| 476 | * Escapes all potentially dangerous characters, so that the |
||
| 477 | * resulting string can be safely inserted into attribute or |
||
| 478 | * element text. |
||
| 479 | * @param value |
||
| 480 | * @returns {string} escaped text |
||
| 481 | */ |
||
| 482 | View Code Duplication | function encodeEntities(value) { |
|
| 483 | return value. |
||
| 484 | replace(/&/g, '&'). |
||
| 485 | replace(SURROGATE_PAIR_REGEXP, function(value) { |
||
| 486 | var hi = value.charCodeAt(0); |
||
| 487 | var low = value.charCodeAt(1); |
||
| 488 | return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';'; |
||
| 489 | }). |
||
| 490 | replace(NON_ALPHANUMERIC_REGEXP, function(value) { |
||
| 491 | return '&#' + value.charCodeAt(0) + ';'; |
||
| 492 | }). |
||
| 493 | replace(/</g, '<'). |
||
| 494 | replace(/>/g, '>'); |
||
| 495 | } |
||
| 496 | |||
| 497 | /** |
||
| 498 | * create an HTML/XML writer which writes to buffer |
||
| 499 | * @param {Array} buf use buf.join('') to get out sanitized html string |
||
| 500 | * @returns {object} in the form of { |
||
| 501 | * start: function(tag, attrs) {}, |
||
| 502 | * end: function(tag) {}, |
||
| 503 | * chars: function(text) {}, |
||
| 504 | * comment: function(text) {} |
||
| 505 | * } |
||
| 506 | */ |
||
| 507 | View Code Duplication | function htmlSanitizeWriterImpl(buf, uriValidator) { |
|
| 508 | var ignoreCurrentElement = false; |
||
| 509 | var out = bind(buf, buf.push); |
||
| 510 | return { |
||
| 511 | start: function(tag, attrs) { |
||
| 512 | tag = lowercase(tag); |
||
| 513 | if (!ignoreCurrentElement && blockedElements[tag]) { |
||
| 514 | ignoreCurrentElement = tag; |
||
| 515 | } |
||
| 516 | if (!ignoreCurrentElement && validElements[tag] === true) { |
||
| 517 | out('<'); |
||
| 518 | out(tag); |
||
| 519 | forEach(attrs, function(value, key) { |
||
| 520 | var lkey = lowercase(key); |
||
| 521 | var isImage = (tag === 'img' && lkey === 'src') || (lkey === 'background'); |
||
| 522 | if (validAttrs[lkey] === true && |
||
| 523 | (uriAttrs[lkey] !== true || uriValidator(value, isImage))) { |
||
| 524 | out(' '); |
||
| 525 | out(key); |
||
| 526 | out('="'); |
||
| 527 | out(encodeEntities(value)); |
||
| 528 | out('"'); |
||
| 529 | } |
||
| 530 | }); |
||
| 531 | out('>'); |
||
| 532 | } |
||
| 533 | }, |
||
| 534 | end: function(tag) { |
||
| 535 | tag = lowercase(tag); |
||
| 536 | if (!ignoreCurrentElement && validElements[tag] === true && voidElements[tag] !== true) { |
||
| 537 | out('</'); |
||
| 538 | out(tag); |
||
| 539 | out('>'); |
||
| 540 | } |
||
| 541 | // eslint-disable-next-line eqeqeq |
||
| 542 | if (tag == ignoreCurrentElement) { |
||
| 543 | ignoreCurrentElement = false; |
||
| 544 | } |
||
| 545 | }, |
||
| 546 | chars: function(chars) { |
||
| 547 | if (!ignoreCurrentElement) { |
||
| 548 | out(encodeEntities(chars)); |
||
| 549 | } |
||
| 550 | } |
||
| 551 | }; |
||
| 552 | } |
||
| 553 | |||
| 554 | |||
| 555 | /** |
||
| 556 | * When IE9-11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1' attribute to declare |
||
| 557 | * ns1 namespace and prefixes the attribute with 'ns1' (e.g. 'ns1:xlink:foo'). This is undesirable since we don't want |
||
| 558 | * to allow any of these custom attributes. This method strips them all. |
||
| 559 | * |
||
| 560 | * @param node Root element to process |
||
| 561 | */ |
||
| 562 | View Code Duplication | function stripCustomNsAttrs(node) { |
|
| 563 | while (node) { |
||
| 564 | if (node.nodeType === window.Node.ELEMENT_NODE) { |
||
| 565 | var attrs = node.attributes; |
||
| 566 | for (var i = 0, l = attrs.length; i < l; i++) { |
||
| 567 | var attrNode = attrs[i]; |
||
| 568 | var attrName = attrNode.name.toLowerCase(); |
||
| 569 | if (attrName === 'xmlns:ns1' || attrName.lastIndexOf('ns1:', 0) === 0) { |
||
| 570 | node.removeAttributeNode(attrNode); |
||
| 571 | i--; |
||
| 572 | l--; |
||
| 573 | } |
||
| 574 | } |
||
| 575 | } |
||
| 576 | |||
| 577 | var nextNode = node.firstChild; |
||
| 578 | if (nextNode) { |
||
| 579 | stripCustomNsAttrs(nextNode); |
||
| 580 | } |
||
| 581 | |||
| 582 | node = getNonDescendant('nextSibling', node); |
||
| 583 | } |
||
| 584 | } |
||
| 585 | |||
| 586 | function getNonDescendant(propName, node) { |
||
| 587 | // An element is clobbered if its `propName` property points to one of its descendants |
||
| 588 | var nextNode = node[propName]; |
||
| 589 | if (nextNode && nodeContains.call(node, nextNode)) { |
||
| 590 | throw $sanitizeMinErr('elclob', 'Failed to sanitize html because the element is clobbered: {0}', node.outerHTML || node.outerText); |
||
| 591 | } |
||
| 592 | return nextNode; |
||
| 593 | } |
||
| 594 | } |
||
| 595 | |||
| 807 |